package com.itheima.serviceconsumer.Controller;

import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Reference
    private UserService userService;

    @RequestMapping("/test")
    public String test(){

        String s = userService.serviceTest();
        return s;
//        return "1";
    }
}
